package com.jobsika.domain;

import java.io.Serializable;
import java.util.Date;

public class RPCPost implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1551320440387501129L;
	private String title;
	private String location;
	private String url;
	private Date date;
	private String body;

	public RPCPost() {
	}

	public RPCPost(String title, String location, String url,
			Date date, String body) {
		this.title = title;
		this.location = location;
		this.url = url;
		this.date = date;
		this.body = body;
	}
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getLocation() {
		return location;
	}

	public boolean isComplete() {
		return title != null && date != null && body != null && url != null
				&& location != null;
	}
}
